package com.ytjj.qmyx.admin.model.response;

import com.ytjj.qmyx.mall.model.ProductSelectSkuKey;
import com.ytjj.qmyx.mall.model.ProductSelectSkuValue;
import lombok.Data;
import org.springframework.beans.BeanUtils;

import java.util.Date;
import java.util.List;

/**
 * @Description TODO
 * @ClassName SelectProductSkuInfoResponse
 *
 *
 * @Version 1.0
 **/

@Data
public class SelectProductSkuInfoResponse {

    /**
     * id
     *
     * @mbg.generated
     */
    private Integer id;

    /**
     * 选品商品id
     *
     * @mbg.generated
     */
    private Integer pid;

    /**
     * key名称
     *
     * @mbg.generated
     */
    private String name;

    /**
     * 排序
     *
     * @mbg.generated
     */
    private Integer sort;

    /**
     * 创建时间
     *
     * @mbg.generated
     */
    private Date createTime;

    /**
     * 修改时间
     *
     * @mbg.generated
     */
    private Date updateTime;

    private static final long serialVersionUID = 1L;

    /**
     * 规格属性
     */
    private List<ProductSelectSkuValue> skuValue;

    public SelectProductSkuInfoResponse() {
    }

    public SelectProductSkuInfoResponse(ProductSelectSkuKey productSelectSkuKey) {
        BeanUtils.copyProperties(productSelectSkuKey,this);
    }
}
